SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 59263: "Object reference not set to an instance of an object" might appear when saving a Microsoft Excel file that contains SAS® content

DetailsHotfixAboutRate It

When using the SAS® Add-In for Microsoft Office, you might see the following error when you attempt to save a Microsoft Excel file that contains SAS content. Specifically, this error can occur when focus is on a chart sheet instead of on a worksheet.

Exception information ---------------------------------------------------------------------- Object reference not set to an instance of an object. Exception Details: ---------------------------------------- Exception type: System.NullReferenceException Message: Object reference not set to an instance of an object. Source: SAS.OfficeAddin Target Site: .ctor Stack Trace: at SAS.OfficeAddin.CachedCubeCredentials..ctor(Workbook workbook) at SAS.OfficeAddin.ExcelAddin.RemoveCubeCredentials(Workbook book, Boolean startSaveWatcher) at SAS.OfficeAddin.ExcelAddin.OnBeforeSave(Object document, Boolean saveAsUI, Boolean& cancel) at SAS.ExcelAddIn.VstoExcelAddIn.OnWorkbookBeforeSave(Workbook Wb, Boolean SaveAsUI, Boolean& Cancel)

This problem can occur after you apply Hot Fix 4 to release 7.12 of the SAS add-in.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-In for Microsoft OfficeMicrosoft® Windows® for x647.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 8 Enterprise 32-bit7.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 8 Enterprise x647.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 8 Pro 32-bit7.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 8 Pro x647.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 8.1 Enterprise 32-bit7.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 8.1 Enterprise x647.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 8.1 Pro 32-bit7.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 8.1 Pro x647.127.139.4 TS1M39.4 TS1M4
Microsoft Windows 107.127.139.4 TS1M39.4 TS1M4
Microsoft Windows Server 20087.127.139.4 TS1M39.4 TS1M4
Microsoft Windows Server 2008 R27.127.139.4 TS1M39.4 TS1M4
Microsoft Windows Server 2008 for x647.127.139.4 TS1M39.4 TS1M4
Microsoft Windows Server 2012 Datacenter7.127.139.4 TS1M39.4 TS1M4
Microsoft Windows Server 2012 R2 Datacenter7.127.139.4 TS1M39.4 TS1M4
Microsoft Windows Server 2012 R2 Std7.127.139.4 TS1M39.4 TS1M4
Microsoft Windows Server 2012 Std7.127.139.4 TS1M39.4 TS1M4
Windows 7 Enterprise 32 bit7.127.139.4 TS1M39.4 TS1M4
Windows 7 Enterprise x647.127.139.4 TS1M39.4 TS1M4
Windows 7 Home Premium 32 bit7.127.139.4 TS1M39.4 TS1M4
Windows 7 Home Premium x647.127.139.4 TS1M39.4 TS1M4
Windows 7 Professional 32 bit7.127.139.4 TS1M39.4 TS1M4
Windows 7 Professional x647.127.139.4 TS1M39.4 TS1M4
Windows 7 Ultimate 32 bit7.127.139.4 TS1M39.4 TS1M4
Windows 7 Ultimate x647.127.139.4 TS1M39.4 TS1M4
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.